package request

type SystemRequest struct {
	Name     string `form:"name" json:"name" binding:"required,max=20" label:"网站名称"`
	Logo     string `form:"logo" json:"logo" binding:"required,max=240" label:"网站LOGO"`
	Beian    string `form:"beian" json:"beian" binding:"required,max=30" label:"网站描述"`
	Keywords string `form:"keywords" json:"keywords" binding:"max=240" label:"网站关键字"`
	Status   bool   `form:"status" json:"status" binding:"boolean" label:"状态"`
}

func (system SystemRequest) GetMessages() ValidatorMessages {
	return ValidatorMessages{
		"required": ":label为必填",
		"boolean":  ":label格式不正确",
		"max":      ":label超过最大字数限制",
	}
}
